<?php

class LogoutController extends Zend_Controller_Action {
    private $sessionLogin;
    /**
     * Constructor
     */
    public function init() {
        $this->sessionLogin = new Zend_Session_Namespace('User');
    }

    /**
     * Main Back End
     */
    public function indexAction() {
        // Set title layout
        $this->view->headTitle('Logout | FrontEnd');

        if(!empty($this->sessionLogin->userinfo)) {
            $this->sessionLogin->userinfo = NULL;
        }

        $this->_redirect('/');
        
    }


}

